import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;

public class Test22 {
    public static void main(String[] args) throws IOException {
       /* FileWriter fw = new FileWriter("day19\\aaa.txt");
        fw.write(97);
        char[] chars = new char[]{'大','马','猴'};
        fw.write(chars);
        fw.write(chars,0,2);
        String s="刘汗淋29号技师";
        fw.write(s);
        fw.write(s,0,3);
        fw.close();*/
        FileReader fr = new FileReader("day19\\aaa.txt");
        char[] chars = new char[1024];
        int b;
        while ((b=fr.read(chars))!=-1){
            System.out.println(new String(chars,0,b));
        }
        fr.close();


    }
}
